decisions = {
	cr_wol_hold_court = {
		only_playable = yes
		is_high_prio = yes
		potential = { has_focus = focus_rulership cr_wol_can_use_focus_activity_trigger = yes }
		allow = { NOT = { has_character_flag = cr_wol_hold_court_cooldown } }
		effect = {
			set_character_flag = cr_wol_hold_court_cooldown
			set_character_flag = cr_wol_holding_court
			set_variable = { which = cr_wol_petitions_remaining value = 3 }
			character_event = { id = cr_wol.40 days = 365 }
			character_event = { id = cr_wol_rulership.1 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 }
	}

	cr_wol_pursue_venture = {
		only_playable = yes
		is_high_prio = yes
		potential = { has_focus = focus_business cr_wol_can_use_focus_activity_trigger = yes }
		allow = { wealth = 25 NOT = { has_character_flag = cr_wol_venture_cooldown } }
		effect = {
			set_character_flag = cr_wol_venture_cooldown
			character_event = { id = cr_wol.41 days = 365 }
			character_event = { id = cr_wol_business.1 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 modifier = { factor = 0 NOT = { wealth = 50 } } }
	}

	# Overrides vanilla's same-named hunt decision after the vanilla file loads.
	hold_grand_hunt = {
		only_playable = yes
		is_high_prio = yes
		potential = { has_focus = focus_hunting cr_wol_can_use_focus_activity_trigger = yes }
		allow = { wealth = 25 NOT = { has_character_flag = cr_wol_hunt_cooldown } }
		effect = {
			wealth = -25
			set_character_flag = cr_wol_hunt_cooldown
			character_event = { id = cr_wol.42 days = 365 }
			character_event = { id = cr_wol_hunting.1 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 modifier = { factor = 0 NOT = { wealth = 50 } } }
	}

	cr_wol_conduct_maneuvers = {
		only_playable = yes
		is_high_prio = yes
		potential = { has_focus = focus_war cr_wol_can_use_focus_activity_trigger = yes }
		allow = { wealth = 20 NOT = { has_character_flag = cr_wol_maneuvers_cooldown } }
		effect = {
			wealth = -20
			set_character_flag = cr_wol_maneuvers_cooldown
			character_event = { id = cr_wol.43 days = 365 }
			character_event = { id = cr_wol_war.1 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 }
	}

	cr_wol_host_revel = {
		only_playable = yes
		is_high_prio = yes
		potential = { has_focus = focus_carousing cr_wol_can_use_focus_activity_trigger = yes }
		allow = { wealth = 20 NOT = { has_character_flag = cr_wol_revel_cooldown } }
		effect = {
			wealth = -20
			set_character_flag = cr_wol_revel_cooldown
			character_event = { id = cr_wol.44 days = 365 }
			character_event = { id = cr_wol_carousing.10 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 }
	}

	cr_wol_gather_household = {
		only_playable = yes
		is_high_prio = yes
		potential = { has_focus = focus_family cr_wol_can_use_focus_activity_trigger = yes cr_wol_has_adult_family_trigger = yes }
		allow = { NOT = { has_character_flag = cr_wol_family_cooldown } }
		effect = {
			set_character_flag = cr_wol_family_cooldown
			character_event = { id = cr_wol.45 days = 365 }
			character_event = { id = cr_wol_family.1 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 }
	}

	cr_wol_undertake_study = {
		only_playable = yes
		is_high_prio = yes
		potential = { has_focus = focus_scholarship cr_wol_can_use_focus_activity_trigger = yes }
		allow = {
			wealth = 25
			NOT = { has_character_flag = cr_wol_study_active }
			NOT = { has_character_flag = cr_wol_study_cooldown }
		}
		effect = {
			set_character_flag = cr_wol_study_cooldown
			character_event = { id = cr_wol.46 days = 730 }
			character_event = { id = cr_wol_scholarship.1 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 modifier = { factor = 0 NOT = { wealth = 50 } } }
	}

	cr_wol_pursue_theology = {
		only_playable = yes
		is_high_prio = yes
		potential = { has_focus = focus_theology cr_wol_can_use_focus_activity_trigger = yes }
		allow = { NOT = { has_character_flag = cr_wol_theology_cooldown } }
		effect = {
			set_character_flag = cr_wol_theology_cooldown
			character_event = { id = cr_wol.47 days = 365 }
			character_event = { id = cr_wol_theology.1 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 }
	}

	# The observatory chain belongs to the replaced vanilla Scholarship system.
	build_observatory = {
		potential = { always = no }
		allow = { always = no }
		effect = { }
		ai_will_do = { factor = 0 }
	}
}

targetted_decisions = {
	break_up_with_lover = {
		only_playable = yes
		filter = realm
		from_potential = { is_adult = yes }
		potential = { is_lover = FROM }
		allow = { always = yes }
		effect = { remove_lover = FROM }
		revoke_allowed = { always = no }
		ai_will_do = { factor = 0 }
	}

	seduce_decision = {
		only_playable = yes
		ai_target_filter = realm
		ai_check_interval = 6
		from_potential = {
			has_focus = focus_seduction
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			NOT = { has_character_flag = cr_wol_seduction_active }
			NOT = { has_character_flag = cr_wol_seduction_cooldown }
		}
		potential = { cr_wol_valid_seduction_target_trigger = yes }
		allow = { is_within_diplo_range = FROM }
		effect = {
			save_event_target_as = cr_wol_seduction_target
			FROM = {
				set_character_flag = cr_wol_seduction_active
				set_character_flag = cr_wol_seduction_cooldown
				character_event = { id = cr_wol.48 days = 90 }
				character_event = { id = cr_wol_seduction.1 }
			}
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 modifier = { factor = 2 trait = lustful } modifier = { factor = 0.5 trait = shy } }
	}

	decision_spy_on = {
		only_playable = yes
		ai_target_filter = realm
		ai_check_interval = 12
		from_potential = {
			has_focus = focus_intrigue
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			NOT = { has_character_flag = cr_wol_spy_active }
			NOT = { has_character_flag = cr_wol_spy_cooldown }
		}
		potential = { cr_wol_valid_spy_target_trigger = yes }
		allow = { is_within_diplo_range = FROM }
		effect = {
			set_character_flag = cr_wol_under_investigation
			save_event_target_as = cr_wol_spy_target
			FROM = {
				set_character_flag = cr_wol_spy_active
				set_character_flag = cr_wol_spy_cooldown
				character_event = { id = cr_wol.49 days = 180 }
				character_event = { id = cr_wol_intrigue.1 }
			}
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 modifier = { factor = 2 trait = paranoid } }
	}

	invite_to_party = {
		only_playable = yes
		ai_target_filter = realm
		ai_check_interval = 12
		from_potential = {
			has_focus = focus_carousing
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			NOT = { has_character_flag = cr_wol_party_active }
			NOT = { has_character_flag = cr_wol_party_invite_cooldown }
		}
		potential = {
			is_adult = yes
			NOT = { character = FROM }
			NOT = { trait = incapable }
			prisoner = no
		}
		allow = { is_within_diplo_range = FROM }
		effect = {
			save_event_target_as = cr_wol_party_invitee
			FROM = {
				set_character_flag = cr_wol_party_active
				set_character_flag = cr_wol_party_invite_cooldown
				character_event = { id = cr_wol.50 days = 180 }
			}
			letter_event = { id = cr_wol_carousing.1 }
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 modifier = { factor = 2 trait = gregarious } modifier = { factor = 0.5 trait = shy } }
	}

	cr_wol_covert_removal = {
		only_playable = yes
		ai_target_filter = realm
		ai_check_interval = 24
		from_potential = {
			has_focus = focus_intrigue
			is_adult = yes
			wealth = 100
			NOT = { trait = incapable }
		}
		potential = {
			is_adult = yes
			NOT = { character = FROM }
			has_character_modifier = cr_wol_compromised
		}
		allow = { is_within_diplo_range = FROM FROM = { wealth = 100 } }
		effect = {
			save_event_target_as = cr_wol_spy_target
			FROM = {
				wealth = -100
				character_event = { id = cr_wol_intrigue.20 }
			}
		}
		revoke_allowed = { always = no }
		ai_will_do = { factor = 0.25 modifier = { factor = 2 trait = cruel } }
	}

	stop_seduce_decision = { from_potential = { always = no } potential = { always = no } allow = { always = no } effect = { } ai_will_do = { factor = 0 } }
	stop_seduce_decision_target = { from_potential = { always = no } potential = { always = no } allow = { always = no } effect = { } ai_will_do = { factor = 0 } }
	stop_spy_on_decision = { from_potential = { always = no } potential = { always = no } allow = { always = no } effect = { } ai_will_do = { factor = 0 } }
	stop_spy_on_decision_target = { from_potential = { always = no } potential = { always = no } allow = { always = no } effect = { } ai_will_do = { factor = 0 } }
}
